/**
 * 
 */
package com.youxin.cpcenter.pt.common;


import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.youxin.busfoundation.common.BuildConfig;

/**
 * @author yingde.cao
 * @date 2017年12月20日
 * @version 1.0
 */
public class PtConfig {	
	/**
	 * 测试地址
	 * @description 
	 * @return
	 */
	public static String currentURL(){
		if(BuildConfig.isTestLocal())
		{
			return "http://127.0.0.1:8775";
		}
		if(BuildConfig.isTestPro())
		{
			return "http://qiyeapi.slsai.com";
		}
		return null;
	}
	
	public final static String LOGIN_SURFIX="/api/login";
	public final static String ADD_MEMBER_SUFIX="/api/ent/addmember";
	public final static String TRY_OUT_SUFFIX="/api/tryout/submit";
	public final static String IDENTIFY_SUFFIX="/api/ent/identify";
	public final static String MEMBER_LIST_SUFFIX="/api/member/list";
	public final static String MEMBER_AUTH_SUFFIX="/api/member/edition/auth";
	public final static String MEMBER_UNAUTH_SUFFIX="/api/member/edition/unauth";
	public final static String MEMBER_OPEN_SUFFIX="/api/member/edition/open";
	public final static String MEMBER_CLOSE_SUFFIX="/api/member/edition/close";
	public static List<String> URL_SUFFIXS=new ArrayList<>();
	
	static{
		URL_SUFFIXS.add(LOGIN_SURFIX);
		URL_SUFFIXS.add(ADD_MEMBER_SUFIX);
		URL_SUFFIXS.add(TRY_OUT_SUFFIX);
		URL_SUFFIXS.add(IDENTIFY_SUFFIX);
		URL_SUFFIXS.add(MEMBER_LIST_SUFFIX);
		URL_SUFFIXS.add(MEMBER_AUTH_SUFFIX);
		URL_SUFFIXS.add(MEMBER_UNAUTH_SUFFIX);
		URL_SUFFIXS.add(MEMBER_OPEN_SUFFIX);
		URL_SUFFIXS.add(MEMBER_CLOSE_SUFFIX);
		
	}
}
